package com.example.mall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.mall.domain.OrderAddresses;
import com.example.mall.dto.OrderAddressesDto;
import com.example.mall.query.OrderAddressesQuery;
import com.example.mall.query.PageDTO;

import java.util.List;


/**
 * <p>
 * 订单地址表 服务类
 * </p>
 *
 * @author whale
 * @since 2025-05-09
 */
public interface IOrderAddressesService extends IService<OrderAddresses> {

    // 查询订单地址表信息
    PageDTO<OrderAddressesDto> queryPage(OrderAddressesQuery orderAddressesQuery);

    // 新增订单地址表
    void insert(OrderAddressesDto orderAddressesDto);
    // 修改订单地址表信息
    void update(OrderAddressesDto orderAddressesDto);
    // 根据id查询订单地址表信息
    OrderAddresses queryOrderAddressesById(Long addressId);

    // 查询全部订单地址表信息
    List<OrderAddresses> queryOrderAddressesList();

    // 根据id删除订单地址表信息
    void delete(Long addressId);

    // 批量删除订单地址表信息
    void deleteBatch(List<Long> addressIds);
}
